package po

import "time"

type Agent struct {
	GUID             string      `xorm:"guid"`
	Platform         string      `xorm:"platform"`
	Role             string      `xorm:"role"`
	HostName         string      `xorm:"host_name"`
	AreaID           string      `xorm:"area_id"`
	DetailRepoKey    string      `xorm:"detail_repo_key"`
	DetailRepoValue  interface{} `xorm:"-"`
	ConfigRepoKey    string      `xorm:"config_repo_key"`
	ConfigRepoValue  interface{} `xorm:"-"`
	RunTimeRepoKey   string      `xorm:"runtime_repo_key"`
	RunTimeRepoValue interface{} `xorm:"-"`
	RegisterTime     time.Time   `xorm:"register_time"`
	LastConnectTime  time.Time   `xorm:"last_connect_time"`
}

func (obj *Agent) TableName() string {
	return "agent"
}
